<template>
  <router-view></router-view>
</template>

<script>
import { useMessage } from 'naive-ui'
import { defineComponent } from 'vue'

// 使message在js中可用
// see https://www.naiveui.com/zh-CN/os-theme/components/message#在-setup-外使用
export default defineComponent({
  name: 'AppRouterView',
  setup () {
    window.$message = useMessage()
  }
})
</script>

<style scoped>

</style>
